package cn.iocoder.mall.shop.service.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: LL
 * @Date: 2019/11/25 22:23
 */
@Data
@TableName("shop_category_relationship")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="shop_category_relationship对象", description="商品条目关联关系")
public class ShopCategoryRelationship implements Serializable {
    /**id*/
    @ApiModelProperty(value = "id")
    private Long id;
    /**条目id*/
    @Excel(name = "条目id", width = 15)
    @ApiModelProperty(value = "条目id")
    @NotNull(message = "店员ID不能为空")
    private String categoryId;
    /**商品id*/
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
    @NotNull(message = "店员ID不能为空")
    private Long spuId;
    /**店铺id*/
    @Excel(name = "店铺id", width = 15)
    @ApiModelProperty(value = "店铺id")
    @Length(min = 1,max = 32,message = "店铺ID不合法")
    @NotNull(message = "店铺ID不能为空")
    private String shopId;
    /**修改时间*/
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;
    /**创建时间*/
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;
}
